/** 支付相关 */
import request from '@/utils/request'

// 提现账户
export function withdrawAccount(params) {
	return request({
		url: '/technicianapp/my.index/receipt',
		method: 'get',
		params
	})
}

// 提现信息
export function withdraw(params) {
	return request({
		url: '/technicianapp/Index/withdraw',
		method: 'get',
		params
	})
}

// 提现列表
export function withdrawList(params) {
	return request({
		url: '/technicianapp/Index/withdrawList',
		method: 'get',
		params
	})
}

// 提现申请
export function withdrawApply(data) {
	return request({
		url: '/technicianapp/my.index/withdrawApply',
		method: 'post',
		data
	})
}

// 可选银行列表
export function bankList(params) {
	return request({
		url: '/technicianapp/Assist/getBankList',
		method: 'get',
		params
	})
}

// 绑定支付宝信息
export function aliBind(data) {
	return request({
		url: '/technicianapp/my.index/aliBind',
		method: 'post',
		data
	})
}

// 绑定银行卡信息
export function bankBind(data) {
	return request({
		url: '/technicianapp/my.index/bankBind',
		method: 'post',
		data
	})
}

// 解绑银行卡信息
export function unbankBind(params) {
	return request({
		url: '/technicianapp/my.index/delBank',
		method: 'get',
		params
	})
}